<% remote_form_for @follow_setting,
    :update => :setting,    
    :url => update_zhui_tools_zhui_tian_ya_hot_post_url(@hot_post),
    :method => :put,
    :html => {
      :id => :edit_setting_form,      
    } do |f|
 %>
<div id="edit_setting">
  <div class="head">
    设置追贴规则
  </div>
  <div class="form">
    <dl>
    <dt>提醒：</dt>
    <dd>
      每日<%= f.select :report_hour,[
              ['0点',0],
              ['1点',1],
              ['2点',2],
              ['3点',3],
              ['4点',4],
              ['5点',5],
              ['6点',6],
              ['7点',7],
              ['8点',8],
              ['9点',9],
              ['10点',10],
              ['11点',11],
              ['12点',12],
              ['13点',13],
              ['14点',14],
              ['15点',15],
              ['16点',16],
              ['17点',17],
              ['18点',18],
              ['19点',19],
              ['20点',20],
              ['21点',21],
              ['22点',22],
              ['23点',23]
            ]  
         %>
    </dd>
    </dl>
    <dl>
      <dt>短信提醒:</dt>
      <dd>
        <%= f.check_box :allow_sms,{ :class => 's no'},'yes','no' %><%= f.label :allow_sms, '开通' %>
        <%=  link_to_add_fetion_if_user_no_mobile current_user %>
      </dd>
    </dl>
    <dl>
      <dt>email提醒:</dt>
      <dd>
        <%= f.check_box :allow_email,{:class => 's no'},'yes','no' %><%= f.label :allow_email, '开通' %>
      </dd>
    </dl>  
    <dl>
      <dt>内容：</dt>
      <dd>
        <%= f.radio_button :scope,'lz', :class => 's no' %><%= f.label :scope_lz, '只追楼主的帖' %>
        <%= f.radio_button :scope, 'all', :class => 's no' %><%= f.label :scope_all, '追所有人的贴' %>
      </dd>
    </dl> 
    <dl id='submit_zhui' class='submit'>
      <dd>
        <%= link_to_function '保存',"#{small_loading('submit_zhui')};$('edit_setting_form').onsubmit()",:class => 'save corner' %>
        <%= link_to_remote '返回',
              :update => :setting,              
              :url => show_zhui_tools_zhui_tian_ya_hot_post_url(@hot_post),
              :method => :get,
              :loading => small_loading('submit_zhui') ,
              :success => "$('zhui').update('【追此帖】');$('zhui').show()",
              :html => {            
                :class => 'go_back corner'
              } %>
      </dd>
    </dl>
  </div>
</div>
<% end %>